import Find from '@/views/find.vue'
import Homepage from '@/views/homepage.vue'
import My from '@/views/my.vue'
import Particulars from '@/views/particulars.vue'
import Subject from '@/views/subject.vue'

import Contented from '@/views/contented.vue'
import Login from '@/views/login.vue'
import Register from '@/views/register.vue'
import Myfavorite from '@/views/myfavorite.vue'
import Rentout from '@/views/rentout.vue'
import Issue from '@/views/issue.vue'
import City from '@/views/city.vue'
import Inquire from '@/views/inquire.vue'
const routes = [
  {
    name: 'subject',
    path: '/',
    component: Subject,
    redirect: 'homepage',
    children: [
      {
        name: 'homepage',
        path: '/homepage',
        component: Homepage
      },
      {
        name: 'find',
        path: '/find',
        component: Find
      },
      {
        name: 'particulars',
        path: '/particulars',
        component: Particulars
      },
      {
        name: 'my',
        path: '/my',
        component: My
      }
    ]
  },
  {
    name: 'register',
    path: '/register',
    component: Register
  },
  {
    name: 'login',
    path: '/login',
    component: Login
  },
  {
    name: 'contented',
    path: '/contented',
    component: Contented
  },
  {
    name: 'myfavorite',
    path: '/myfavorite',
    component: Myfavorite
  },
  {
    name: 'rentout',
    path: '/rentout',
    component: Rentout
  },
  {
    name: 'issue',
    path: '/issue',
    component: Issue
  },
  {
    name: 'city',
    path: '/city',
    component: City
  },
  {
    name: 'inquire',
    path: '/inquire',
    component: Inquire
  }
]

export default routes
